const baseUrl = "http://192.168.4.20:3000"
function http({
    url
}){
    return new Promise((resolve,reject)=>{
        wx.request({
            url: baseUrl+url,
            data: {},
            header: {'content-type':'application/json'},
            method: 'GET',
            dataType: 'json',
            responseType: 'text',
            success: (res)=>{
                resolve(res)
            },
            fail: ()=>{},
            complete: ()=>{}
        });
    })
}

function getremenHttp(){
    return http({
        url:"/top/playlist/highquality"
    })
}
function getzuixinHttp(){
    return http({
        url:"/album/newest"
    })
}
function getzhuboHttp(){
    return http({
        url:"/personalized/djprogram"
    })
}
module.exports={
    getremenHttp,
    getzuixinHttp,
    getzhuboHttp
}